Skip to content

Correctly build Lua with backwards compatibility #123

Merged
merged 2 commits into from
Sep 14, 2016

Conversation

pmenzel
Copy link
Collaborator

@pmenzel pmenzel commented Sep 14, 2016

Building the VLC media player failed, because the installed Lua package is missing the backwards compatibility with Lua 5.1, and 5.2.

The environment variables for the Lua compatibility was changed in
Lua 5.3, and overlooked in the Linux From Scratch book when updating the
Lua version [1], probably using the recipe for Lua 5.2.

>  MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1": This environment
>  variable includes compatibility layers with Lua 5.1 and 5.2 in the
>  build.

Fix this, so that the VLC media player, depending an Lua 5.1, builds and
works correctly.

[1] http://www.linuxfromscratch.org/blfs/view/7.10/general/lua.html
@david
Copy link
Collaborator

david commented Sep 14, 2016

I tested on rabammel with vlc-2.2.4 it dont work.
lua error

..../vlc/vlc-2.2.4-1/source/modules/lua/demux.c:55:13: error: implicit declaration of function ‘luaL_checkint’ [-Werror=implicit-function-declaration]
int n = luaL_checkint( L, 1 );

@pmenzel
Copy link
Collaborator Author

pmenzel commented Sep 14, 2016

You might need something like commit 19457db (vlc: Pass Lua compatibility ) from my branch pauls-changes-for-systemd-231.

@david
Copy link
Collaborator

david commented Sep 14, 2016

Sorry my fault it works

@david david merged commit 986b73c into master Sep 14, 2016
@donald donald deleted the correctly-build-lua-with-backwards-compatibility branch September 26, 2016 13:58
pmenzel added a commit that referenced this pull request Jan 17, 2024
> Release notes for 2.8.3
> =======================
> - Fix adding launchers to desktop. (Issue #122)
> - Fix segfault in profile destructor. (Issue #123)
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants